package com.grantz.function.bbs.core.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.springframework.data.annotation.CreatedDate;

import com.grantz.config.jpa.entity.IdEntity;

import lombok.Data;

// 子论点
@Table(name="TB_DISCUSS_CHILD" )
@Entity
@Data
public class DiscussChild extends  IdEntity{
	private static final long serialVersionUID = 1L;

	@Column(name="SSO_ID", columnDefinition =" varchar(32)  COMMENT 'ssoid' ")
	private String ssoId;
	
	// 创建时间
	@Column(name="CREATED_DATE",columnDefinition = "  datetime  COMMENT   '创建时间'   ")
	@CreatedDate
	protected Date createdDate;
	
	@Column(name="TITLE",columnDefinition = "   varchar(50)  COMMENT '标题'   ")
	private String  title;
	
	@Column(name="KEY_WORDS",columnDefinition = "   varchar(255)  COMMENT '关键词'   ")
	private String  keyWords;

	@Column(name="PRAISE_QUANTITY",columnDefinition = "   INT(11)  COMMENT '点赞数'   ")
	private Integer praiseQuantity;

	@Column(name="COMMENT_QUANTITY",columnDefinition = "   INT(11)  COMMENT '评论数'   ")
	private Integer commentQuantity;
	
	@Column(name="SORT_NUMBER",columnDefinition = "   INT(11)  COMMENT '排序'   ")
	private Integer sortNumber;
	
	@Column(name="DISCUSS_ID",length = 36,columnDefinition = " varchar(36)   COMMENT '关联字段，父id'   ")
	private String  discussId;
}
